﻿using System;

class MissCat2011
{
    static void Main(string[] args)
    {
        System.Threading.Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.InvariantCulture;

        int width = int.Parse(Console.ReadLine());

        string lineTemplate = new String('.', width-1);

        int lineCount = 0;
        while (lineCount <width-1)
        {
            string currentLine = lineTemplate.Insert(lineCount, "*");
            Console.WriteLine(currentLine);
            lineCount++;
        }

        while(lineCount >= 0)
        {
            string currentLine = lineTemplate.Insert(lineCount, "*");
            Console.WriteLine(currentLine);
            lineCount--;
        }

    }
}
